# -*- coding:utf-8 -*-
import json


# 定义读取json函数
def read_json_data():
    with open(r"D:\pythonProject1\data\ihrm_login_data.json", "r") as f:
        json_data = json.loads(f.read())
        data = []
        # 遍历，打印到一个列表，以达到列表套元组的目的
        for i in json_data:
            data.append(tuple(i.values()))
        # 返回
        return data


if __name__ == '__main__':
    print(read_json_data())
